package com.ceba.test.webservice.entity;

public abstract class PrivateKeyConfAbstract implements PrivateKeyConf {

    private Integer type;

    /**
     * 非对称加密算法
     * 比如RSA、SM2
     */
    private String publicKeyAlg;

    /**
     * 摘要算法
     * 比如SHA256withRSA、SM3withSM2
     */
    private String sigAlg;

    public PrivateKeyConfAbstract() {
        this.sigAlg = "SHA256withRSA";
        this.publicKeyAlg = "RSA";
    }

    public PrivateKeyConfAbstract(String sigAlg, String publicKeyAlg) {
        this.sigAlg = sigAlg;
        this.publicKeyAlg = publicKeyAlg;
    }

    @Override
    public String getPublicKeyAlg() {
        return publicKeyAlg;
    }

    public void setPublicKeyAlg(String publicKeyAlg) {
        this.publicKeyAlg = publicKeyAlg;
    }

    @Override
    public String getSigAlg() {
        return sigAlg;
    }

    public void setSigAlg(String sigAlg) {
        this.sigAlg = sigAlg;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
